package gov.ccswj.modules.ccbusiness.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import gov.ccswj.modules.ccbusiness.dao.CBiddinginfoDao;
import gov.ccswj.modules.ccbusiness.entity.CBiddinginfoEntity;
import gov.ccswj.modules.ccbusiness.service.CBiddinginfoService;



@Service("cBiddinginfoService")
public class CBiddinginfoServiceImpl implements CBiddinginfoService {
	@Autowired
	private CBiddinginfoDao cBiddinginfoDao;
	
	@Override
	public CBiddinginfoEntity queryObject(Integer id){
		return cBiddinginfoDao.queryObject(id);
	}
	
	@Override
	public List<CBiddinginfoEntity> queryList(Map<String, Object> map){
		return cBiddinginfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cBiddinginfoDao.queryTotal(map);
	}
	
	@Override
	public void save(CBiddinginfoEntity cBiddinginfo){
		cBiddinginfoDao.save(cBiddinginfo);
	}
	
	@Override
	public void update(CBiddinginfoEntity cBiddinginfo){
		cBiddinginfoDao.update(cBiddinginfo);
	}
	
	@Override
	public void delete(Integer id){
		cBiddinginfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		cBiddinginfoDao.deleteBatch(ids);
	}

	@Override
	public void deleteByname(String entname) {
		cBiddinginfoDao.delete(entname);
		
	}
	
}
